package it.lovaex.scb.unittests;

import static org.junit.Assert.*;

import java.math.BigDecimal;

import it.lovaex.scb.model.Item;

import org.junit.Before;
import org.junit.Test;

public class ItemTest {

	private Item sut;
	private String itemName;
	private BigDecimal itemPrice;
	private BigDecimal discountRate;
	
	@Before
	public void SetUp(){
		itemName = "item";
		itemPrice = new BigDecimal(100);
		discountRate = new BigDecimal(0);
		sut = new Item(itemName, itemPrice, discountRate);
	}
	
	@Test
	public void test_should_correctly_print_tostring() {
		assertEquals(sut.toString(), "item : 100");
	}
}
